package org.atovio.mvcConfig.controller;

import org.atovio.mvcConfig.model.DeviceInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AtoVio, Winter Yuan
 */
@RestController
public class DeviceController {

    @PostMapping("/devices/add")
    public String addDevice(@RequestParam("device")DeviceInfo deviceInfo) {
        return "接收到的设备信息：" + deviceInfo;
    }
}
